package com.wfcm.entity;

import java.util.List;

/**
 * @Auther: liu
 * @Date: 2018/7/13 16:09
 * @Description: 分销
 */
public class Distribution {

    private Integer id;

    private String key;

    private Integer value;

    private String remark;

    private Integer createTime;

    private Integer updateTime;

    private String createDate;

    private String updateDate;

    private Integer goodsId;

    private Integer goodsSort;

    private Integer userId;

    private Integer inviterId;

    private Integer inviteeId;

    private String inviteeOrderCode;

    private Double commission;

    private Integer status;

    private String inviterName;

    private String inviteeName;

    private String inviterTelephone;

    private String inviteeTelephone;

    private Integer beginTime;

    private Integer endTime;

    private String goodsName;

    private Integer commissionRate;

    private Integer highCommissionRate;

    private Integer inviteCommissionRate;

    private Integer condition;

    private Integer num;

    private String rangeTime;

    private String beginDate;

    private String endDate;

    private Integer courseId;

    private Integer cardId;

    private Integer page;

    private Integer limit;

    private Integer offset;

    private Integer orderCount;

    private Integer time;

    private Double amount;

    private Integer userCount;

    private String goodsImg;

    private Integer pageCount;

    private List<Distribution> results;

    private Integer totalCount;

    private Integer totalPage;

    private Integer errCode = 0;

    private String msg = "success";

    private Double reward;

    private Double goodsPrice;

    private Double orderPrice;

    private String goodsDesc;

    private String headImage;

    private Double activityCash;

    private Double couponsCash;

    private String telephone;

    private String inviteeHeadImage;

    private Integer label;

    private Integer type;
    private Integer type1;
    private Integer type2;
    private Integer type3;
    private Integer type4;

    public Distribution() {
        super();
    }

    public Distribution(Integer inviterId) {
        this.inviterId = inviterId;
    }

    public Distribution(Integer inviterId, Integer inviteeId, String inviteeOrderCode, Double commission,
                        Integer status, Integer createTime, Integer updateTime, Integer goodsId, Integer goodsSort, Integer commissionRate) {
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.inviterId = inviterId;
        this.inviteeId = inviteeId;
        this.inviteeOrderCode = inviteeOrderCode;
        this.commission = commission;
        this.status = status;
        this.goodsId = goodsId;
        this.goodsSort = goodsSort;
        this.commissionRate = commissionRate;
    }

    public Distribution(Integer inviterId, Integer type) {
        this.inviterId = inviterId;
        this.type = type;
    }

    public Integer getCommissionRate() {
        return commissionRate;
    }

    public void setCommissionRate(Integer commissionRate) {
        this.commissionRate = commissionRate;
    }

    public Integer getHighCommissionRate() {
        return highCommissionRate;
    }

    public void setHighCommissionRate(Integer highCommissionRate) {
        this.highCommissionRate = highCommissionRate;
    }

    public Integer getInviteCommissionRate() {
        return inviteCommissionRate;
    }

    public void setInviteCommissionRate(Integer inviteCommissionRate) {
        this.inviteCommissionRate = inviteCommissionRate;
    }

    public Integer getCondition() {
        return condition;
    }

    public void setCondition(Integer condition) {
        this.condition = condition;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Integer beginTime) {
        this.beginTime = beginTime;
    }

    public Integer getEndTime() {
        return endTime;
    }

    public void setEndTime(Integer endTime) {
        this.endTime = endTime;
    }

    public String getInviterName() {
        return inviterName;
    }

    public void setInviterName(String inviterName) {
        this.inviterName = inviterName;
    }

    public String getInviteeName() {
        return inviteeName;
    }

    public void setInviteeName(String inviteeName) {
        this.inviteeName = inviteeName;
    }

    public String getInviterTelephone() {
        return inviterTelephone;
    }

    public void setInviterTelephone(String inviterTelephone) {
        this.inviterTelephone = inviterTelephone;
    }

    public String getInviteeTelephone() {
        return inviteeTelephone;
    }

    public void setInviteeTelephone(String inviteeTelephone) {
        this.inviteeTelephone = inviteeTelephone;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Integer createTime) {
        this.createTime = createTime;
    }

    public Integer getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Integer updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getGoodsSort() {
        return goodsSort;
    }

    public void setGoodsSort(Integer goodsSort) {
        this.goodsSort = goodsSort;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getInviterId() {
        return inviterId;
    }

    public void setInviterId(Integer inviterId) {
        this.inviterId = inviterId;
    }

    public Integer getInviteeId() {
        return inviteeId;
    }

    public void setInviteeId(Integer inviteeId) {
        this.inviteeId = inviteeId;
    }

    public String getInviteeOrderCode() {
        return inviteeOrderCode;
    }

    public void setInviteeOrderCode(String inviteeOrderCode) {
        this.inviteeOrderCode = inviteeOrderCode;
    }

    public Double getCommission() {
        return commission;
    }

    public void setCommission(Double commission) {
        this.commission = commission;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public String getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(String updateDate) {
        this.updateDate = updateDate;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getRangeTime() {
        return rangeTime;
    }

    public void setRangeTime(String rangeTime) {
        this.rangeTime = rangeTime;
    }

    public String getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(String beginDate) {
        this.beginDate = beginDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public Integer getCourseId() {
        return courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }

    public Integer getCardId() {
        return cardId;
    }

    public void setCardId(Integer cardId) {
        this.cardId = cardId;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
        if (null != this.limit && null != this.page) {
            setOffset((page - 1) * this.limit);
        }
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
        if (null != this.page && null != this.limit) {
            setOffset((this.page - 1) * this.limit);
        }
    }

    public Integer getOffset() {
        return offset;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getTime() {
        return time;
    }

    public void setTime(Integer time) {
        this.time = time;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public Integer getUserCount() {
        return userCount;
    }

    public void setUserCount(Integer userCount) {
        this.userCount = userCount;
    }

    public String getGoodsImg() {
        return goodsImg;
    }

    public void setGoodsImg(String goodsImg) {
        this.goodsImg = goodsImg;
    }

    public Integer getPageCount() {
        return pageCount;
    }

    public void setPageCount(Integer pageCount) {
        this.pageCount = pageCount;
    }

    public List<Distribution> getResults() {
        return results;
    }

    public void setResults(List<Distribution> results) {
        this.results = results;
    }

    public Integer getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(Integer totalCount) {
        this.totalCount = totalCount;
        if (null != this.totalCount && null != this.limit) {
            setTotalPage((this.totalCount + this.limit - 1) / this.limit);
        }
    }

    public Integer getOrderCount() {
        return orderCount;
    }

    public void setOrderCount(Integer orderCount) {
        this.orderCount = orderCount;
    }

    public Integer getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(Integer totalPage) {
        this.totalPage = totalPage;
    }

    public Integer getErrCode() {
        return errCode;
    }

    public void setErrCode(Integer errCode) {
        this.errCode = errCode;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Double getReward() {
        return reward;
    }

    public void setReward(Double reward) {
        this.reward = reward;
    }

    public Double getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(Double goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public String getGoodsDesc() {
        return goodsDesc;
    }

    public void setGoodsDesc(String goodsDesc) {
        this.goodsDesc = goodsDesc;
    }

    public String getHeadImage() {
        return headImage;
    }

    public void setHeadImage(String headImage) {
        this.headImage = headImage;
    }

    public Double getActivityCash() {
        return activityCash;
    }

    public void setActivityCash(Double activityCash) {
        this.activityCash = activityCash;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public Integer getLabel() {
        return label;
    }

    public void setLabel(Integer label) {
        this.label = label;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getType1() {
        return type1;
    }

    public void setType1(Integer type1) {
        this.type1 = type1;
    }

    public Integer getType2() {
        return type2;
    }

    public void setType2(Integer type2) {
        this.type2 = type2;
    }

    public Integer getType3() {
        return type3;
    }

    public void setType3(Integer type3) {
        this.type3 = type3;
    }

    public Integer getType4() {
        return type4;
    }

    public void setType4(Integer type4) {
        this.type4 = type4;
    }

    public Double getCouponsCash() {
        return couponsCash;
    }

    public void setCouponsCash(Double couponsCash) {
        this.couponsCash = couponsCash;
    }

    public String getInviteeHeadImage() {
        return inviteeHeadImage;
    }

    public void setInviteeHeadImage(String inviteeHeadImage) {
        this.inviteeHeadImage = inviteeHeadImage;
    }

    public Double getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(Double orderPrice) {
        this.orderPrice = orderPrice;
    }
}
